Skip to content

Conversation

@MatiPl01
Copy link
Member

@MatiPl01 MatiPl01 commented Oct 16, 2025

Summary

This PR implements a separate CSS value type - SVGBrush for the SVG colors and removes SVG-specific code from the CSSColor implementation.

I named the new type SVGBrush (instead of SVGColor) as react-native-svg uses the RNSVGBrush type to represent color-like values. I also need to add support for other brush values like context-fill and context-stroke (currently only currentColor is supported). I will add support for then in a separate PR.

@MatiPl01 MatiPl01 self-assigned this Oct 16, 2025
@MatiPl01 MatiPl01 changed the title Move SVG color to a separate SVGBrush struct chore: Move SVG color to a separate SVGBrush struct Oct 16, 2025
@MatiPl01 MatiPl01 requested a review from piaskowyk October 16, 2025 21:45
@MatiPl01 MatiPl01 force-pushed the @matipl01/svg-brush-css-value branch from 34183be to ef2ae7c Compare October 17, 2025 14:12
Base automatically changed from @matipl01/fix-transparent-color-interpolation-css to main October 22, 2025 07:15
@MatiPl01 MatiPl01 force-pushed the @matipl01/svg-brush-css-value branch from ef2ae7c to 4ed7ecc Compare October 22, 2025 07:17
@MatiPl01 MatiPl01 added this pull request to the merge queue Oct 22, 2025
Merged via the queue into main with commit 3380da1 Oct 22, 2025
18 checks passed
@MatiPl01 MatiPl01 deleted the @matipl01/svg-brush-css-value branch October 22, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants